package com.updesignsz.admin.vo.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author Lei
 * @since 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserRoleForm implements Serializable {
    private static final long serialVersionUID = 3266610177190455230L;

    @NotNull(message = "用户ID不能为空")
    private Integer id;

    @Size(min = 1, message = "请关联角色")
    private List<Integer> roles;
}
